<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">   
    <title>My JSP 'login.jsp' starting page</title>
  </head>
  <body>
    <form action="login.do" method="post">
      <label>用户名：</label><input type="text" name="username"/><br/>
      <label>密码：</label><input type="password" name="password"/><br/>
      <input type="submit" value="login"/><input type="reset" value="reset"/>
    </form>
    ${error}
  </body>
</html>
